<!DOCTYPE html>
<extend name="Base/base" />
<block name='head'>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="/Public/Index/css/plan/plan_details.css" media="screen" type="text/css" />
    <link href="/Public/Index/css/main.css" rel="stylesheet" /> 
    <link rel="stylesheet" type="text/css" href="/Public/Index/css/plan_css.css">
    <style>
        table{
            width:100%;
            border-collapse: collapse;
            margin:1rem auto;
            /*margin-top: 1rem;*/
        }
        table tr td{
            border:1px solid #CFDDEA;
            padding:0.3em 0;
            text-align: center;
        }
        table .value{
            width:80%;
            text-align: left;
            padding-left:10px;
        }
        table .key{
            width:20%;
            text-align: center;
            background: #F0F3F7;
            color:#5077AA;
        }
        .location{ color:#777; font-size: 0.7rem; width:75%;}
        table{background:#fff}
        .button{margin-top:2em}
        .plan-more tr{line-height: 2em}
        .adrme {margin-top:10px;}        
    </style>
</block>
<block name="content" >
    <div class="detail-content">
        <if condition="$plan['type'] != 1">
            <h2>{$plan.name}</h2>
        </if>
        <if condition="$plan['detail'] neq null">
            <div class="plan_details">
                <div class="write">
                    <span class="n1">我的进度日志</span>
                </div>
                <foreach name='plan.detail' item='detail'>
                    <div class="list_det cd-timeline-block">
                        <dl>
                            <dt class="det1 title_1"><img src="/Public/Index/img/icon_0.svg" />{$detail.write_time}</dt>
                            <dd class="det1 pointer delDetail" style="color: #459EE0;
                                " data-url="{:U('delDetail',array('id'=>$detail['detail_id'],'dept'=>$dept,'cType'=>$cType))}"><span><i class="w1" style="font-style:normal;font-size: 13px;">&#xe658;</i> 删除</span></dd>
                        </dl>
                        <dl>
                            <dt class="det3" style="text-align: left">             
                                <span class="det_nr">{$detail.progress|htmlspecialchars_decode}</span>
                            </dt>
                        </dl>
                        <dl class="det2">
                            <dt class="name">{$detail['type_flag']?'进度':'批注'}</dt>
                        </dl>
                        <dl class="det4">
                            <if condition="$detail['location'] neq null">
                                <i class="address">&#xe61a;</i><span>{$detail.location}</span>
                            </if>
                        </dl>
                    </div>
                </foreach>
            </div>
        </if>
    </div>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Index/js/plan.js"></script>
    <script type="text/javascript">
//        $(initFlowStep())
        $(initSchedule())

    </script>
</block>
